package admin

import (
	"context"
	"server/internal/service"

	"server/api/admin/system"
)

func (c *ControllerSystem) PermissionDelete(ctx context.Context, req *system.PermissionDeleteReq) (res *system.PermissionDeleteRes, err error) {
	res = new(system.PermissionDeleteRes)
	err = service.SystemPermission().DeleteById(ctx, req.Id)
	return res, err
}
